GUI Help > Events > gadgetClicked

gadgetClicked
int handle=gadgetClicked()

Description:
A simple alternative to the other events system (getEvent, eventSource() etc...)
This is provided primarily for users of the original BlueGUI plugin, where gadgetClicked was the only real user interaction command.
gadgetClicked returns a handle to the last gadget clicked since the last call to gadgetClicked, or 0 if no gadgets where clicked in that time.

Return Value:
Gadget handle of the last gadget clicked

Parameters:
Remarks:
The getEvent system is far more flexible and developers are advised to use that method instead.

See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)